package com.market.goods.dao.es;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;

import java.util.Date;

@ToString
@Data
public class MarketGoodsTypeDocument {
    @Id
    private String marketBrandGoodsId;

    /**
     * 商品种类id
     */
    @Id
    private String goodsTypeId;
    /**
     * 品牌Id
     */
    private String brandId;

    /**
     * 商品种类Name
     */
    private String goodsTypeName;

    /**
     * 商品型号上级关联id
     */
    private String superiorTypeId;


    /**
     * 搜索热度
     */
    private Long searchHeat;

    private Integer version;
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private Date createdTime;
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private Date updateTime;
}
